<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:dap="http://diamondparking.com"
                xmlns:s="http://jboss.com/products/seam/taglib"
                template="/templates/basic-html.xhtml">
    
    <ui:define name="title">Print Claims</ui:define>
    
    <ui:define name="body">
        <style>
            td {
            padding: 4px;
            }
        </style>
        <div style="padding: 50px;">
            <div style="border: 1px solid lightGray; background-color: white;">
                <div style="margin: 10px;"><s:link value="back" view="/claims/index.xhtml" propagation="none"/></div>
                <h:dataTable value="#{searcher.results}" var="currClaim" rules="all" style="margin: 10px;">
                    <h:column>
                        <f:facet name="header">Claim</f:facet>
                        <h:outputText value="#{currClaim.id}">
                            <f:convertNumber minIntegerDigits="6" groupingUsed="false"/>
                        </h:outputText>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Customer</f:facet>
                        <h:outputText value="#{currClaim.customer}"/>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">License</f:facet>
                        <h:outputText value="#{currClaim.car.licensePlate}"/>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Make</f:facet>
                        <h:outputText value="#{currClaim.car.make}"/>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Color</f:facet>
                        <h:outputText value="#{currClaim.car.color}"/>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Location</f:facet>
                        <h:outputText value="#{currClaim.location.stall}"/>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Parked By</f:facet>
                        <h:outputText value="#{currClaim.parkedBy.name}"/>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Wash</f:facet>
                        <div style="text-align: center;">
                        <h:outputText value="#{currClaim.carWash ? 'X' : ''}"/>
                        </div>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Comments</f:facet>
                        <h:outputText value="#{currClaim.comments}"/>
                    </h:column>
                    
                    <h:column>
                        <f:facet name="header">Damage</f:facet>
                        <h:outputText value="#{currClaim.damageReport}"/>
                    </h:column>
                </h:dataTable>
                <div style="margin: 10px;"><s:link value="back" view="/claims/index.xhtml" propagation="none"/></div>
            </div>
        </div>
    </ui:define>
    
</ui:composition>
